﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

//namespace Eassets.UI
//{
//    public class SecurityGroupScreenService
//    {
//        private SecurityGroupScreenData securityGroupScreenData = new SecurityGroupScreenData();

//        public void MapScreensToSecurityGroup(Collection<SecurityGroupScreen> securityGroupScreens)
//        {
//            securityGroupScreenData.Map(securityGroupScreens);
//        }

//        public void RemoveScreensFromSecurityGroup(ArrayList securityGroupScreenIds)
//        {
//            securityGroupScreenData.Remove(securityGroupScreenIds);
//        }

//        public SecurityGroupScreen GetSecurityGroupScreenById(long securityGroupScreenId)
//        {
//            return securityGroupScreenData.GetSecurityGroupScreenById(securityGroupScreenId);
//        }

//        public Collection<SecurityGroupScreen> GetScreensBySecurityGroupId(long securityGroupId)
//        {
//            return securityGroupScreenData.GetScreensBySecurityGroupId(securityGroupId);
//        }

//        public Collection<SecurityGroupScreen> GetSecurityGroupScreensByModuleId(long erimsModuleId)
//        {
//            return securityGroupScreenData.GetSecurityGroupScreensByModuleId(erimsModuleId);
//        }

//        public Collection<SecurityGroupScreen> GetSecurityGroupsByModuleId(long organizationStructureId, long erimsModuleId)
//        {
//            return securityGroupScreenData.GetSecurityGroupsByModuleId(organizationStructureId, erimsModuleId);
//        }

//        public Collection<SecurityGroupScreen> GetSecurityGroupScreensBySecurityGroupAndModuleIds(long securityGroupId, long erimsModuleId)
//        {
//            //Collection<SecurityGroupScreen> securityGroupScreensBySecurityGroup = new Collection<SecurityGroupScreen>();
//            //Collection<SecurityGroupScreen> securityGroupScreensByErimsModule = new Collection<SecurityGroupScreen>();
//            //Collection<SecurityGroupScreen> securityGroupScreensBySecurityGroupAndModule = new Collection<SecurityGroupScreen>();

//            //securityGroupScreensBySecurityGroup = securityGroupScreenData.GetScreensBySecurityGroupId(securityGroupId);
//            //securityGroupScreensByErimsModule = securityGroupScreenData.GetSecurityGroupsByModuleId(organizationStructureId, erimsModuleId);

//            //foreach (SecurityGroupScreen securityGroupScreen in securityGroupScreensByErimsModule)
//            //{
//            //    if (securityGroupScreensBySecurityGroup.Contains(securityGroupScreen))
//            //    {
//            //        securityGroupScreensBySecurityGroupAndModule.Add(securityGroupScreen);
//            //        securityGroupScreensByErimsModule.Remove(securityGroupScreen);
//            //    }
//            //}

//            //foreach (SecurityGroupScreen securityGroupScreen in securityGroupScreensBySecurityGroup)
//            //{
//            //    if (!securityGroupScreensByErimsModule.Contains((securityGroupScreen)))
//            //    {
//            //        securityGroupScreensBySecurityGroupAndModule.Add(securityGroupScreen);
//            //    }
//            //}

//            return securityGroupScreenData.GetScreensBySecurityGroupIdAndModuleId(securityGroupId, erimsModuleId);
//        }

//        public Collection<ErimsScreen> GetNavigationMenu(long erimsModuleId, long loginUserStakeholderId, long currentCompanyOrgStructureId)
//        {
//            return securityGroupScreenData.GetNavigationMenuByUserIdModuleIdAndCompanyId(erimsModuleId, loginUserStakeholderId, currentCompanyOrgStructureId);
//        }

//        public int CheckExist(long erimsModuleId, long loginUserStakeholderId, string frmName, long companyOrgStructureId)
//        {
//            return securityGroupScreenData.chekExsisting(erimsModuleId, loginUserStakeholderId, frmName, companyOrgStructureId);

//        }
//    }
//}